#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"
void test1()
{
	LTNode* plist = LTInit();
	LTPrint(plist);
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPrint(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPrint(plist);
}
void test2()
{
	system("cls");
	LTNode* plist = LTInit();

	LTPushFront(plist, 1);
	LTPushFront(plist, 2);
	LTPushFront(plist, 3);
	LTPushFront(plist, 4);
	LTPushFront(plist, 5);
	LTPrint(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPrint(plist);
	LTNode* pos = Isfind(plist, 3);
	LTInsert(pos, 9);
	LTPrint(plist);
	LTErase(pos);
	LTPrint(plist);

}
int main()
{

	//test1();
	test2();

	return 0;

}